package com.esyoga.yoyoga.pojo;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class TInformExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TInformExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIIdIsNull() {
            addCriterion("i_id is null");
            return (Criteria) this;
        }

        public Criteria andIIdIsNotNull() {
            addCriterion("i_id is not null");
            return (Criteria) this;
        }

        public Criteria andIIdEqualTo(Integer value) {
            addCriterion("i_id =", value, "iId");
            return (Criteria) this;
        }

        public Criteria andIIdNotEqualTo(Integer value) {
            addCriterion("i_id <>", value, "iId");
            return (Criteria) this;
        }

        public Criteria andIIdGreaterThan(Integer value) {
            addCriterion("i_id >", value, "iId");
            return (Criteria) this;
        }

        public Criteria andIIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("i_id >=", value, "iId");
            return (Criteria) this;
        }

        public Criteria andIIdLessThan(Integer value) {
            addCriterion("i_id <", value, "iId");
            return (Criteria) this;
        }

        public Criteria andIIdLessThanOrEqualTo(Integer value) {
            addCriterion("i_id <=", value, "iId");
            return (Criteria) this;
        }

        public Criteria andIIdIn(List<Integer> values) {
            addCriterion("i_id in", values, "iId");
            return (Criteria) this;
        }

        public Criteria andIIdNotIn(List<Integer> values) {
            addCriterion("i_id not in", values, "iId");
            return (Criteria) this;
        }

        public Criteria andIIdBetween(Integer value1, Integer value2) {
            addCriterion("i_id between", value1, value2, "iId");
            return (Criteria) this;
        }

        public Criteria andIIdNotBetween(Integer value1, Integer value2) {
            addCriterion("i_id not between", value1, value2, "iId");
            return (Criteria) this;
        }

        public Criteria andIUseridIsNull() {
            addCriterion("i_userid is null");
            return (Criteria) this;
        }

        public Criteria andIUseridIsNotNull() {
            addCriterion("i_userid is not null");
            return (Criteria) this;
        }

        public Criteria andIUseridEqualTo(Integer value) {
            addCriterion("i_userid =", value, "iUserid");
            return (Criteria) this;
        }

        public Criteria andIUseridNotEqualTo(Integer value) {
            addCriterion("i_userid <>", value, "iUserid");
            return (Criteria) this;
        }

        public Criteria andIUseridGreaterThan(Integer value) {
            addCriterion("i_userid >", value, "iUserid");
            return (Criteria) this;
        }

        public Criteria andIUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("i_userid >=", value, "iUserid");
            return (Criteria) this;
        }

        public Criteria andIUseridLessThan(Integer value) {
            addCriterion("i_userid <", value, "iUserid");
            return (Criteria) this;
        }

        public Criteria andIUseridLessThanOrEqualTo(Integer value) {
            addCriterion("i_userid <=", value, "iUserid");
            return (Criteria) this;
        }

        public Criteria andIUseridIn(List<Integer> values) {
            addCriterion("i_userid in", values, "iUserid");
            return (Criteria) this;
        }

        public Criteria andIUseridNotIn(List<Integer> values) {
            addCriterion("i_userid not in", values, "iUserid");
            return (Criteria) this;
        }

        public Criteria andIUseridBetween(Integer value1, Integer value2) {
            addCriterion("i_userid between", value1, value2, "iUserid");
            return (Criteria) this;
        }

        public Criteria andIUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("i_userid not between", value1, value2, "iUserid");
            return (Criteria) this;
        }

        public Criteria andIUsertypeIsNull() {
            addCriterion("i_usertype is null");
            return (Criteria) this;
        }

        public Criteria andIUsertypeIsNotNull() {
            addCriterion("i_usertype is not null");
            return (Criteria) this;
        }

        public Criteria andIUsertypeEqualTo(Integer value) {
            addCriterion("i_usertype =", value, "iUsertype");
            return (Criteria) this;
        }

        public Criteria andIUsertypeNotEqualTo(Integer value) {
            addCriterion("i_usertype <>", value, "iUsertype");
            return (Criteria) this;
        }

        public Criteria andIUsertypeGreaterThan(Integer value) {
            addCriterion("i_usertype >", value, "iUsertype");
            return (Criteria) this;
        }

        public Criteria andIUsertypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("i_usertype >=", value, "iUsertype");
            return (Criteria) this;
        }

        public Criteria andIUsertypeLessThan(Integer value) {
            addCriterion("i_usertype <", value, "iUsertype");
            return (Criteria) this;
        }

        public Criteria andIUsertypeLessThanOrEqualTo(Integer value) {
            addCriterion("i_usertype <=", value, "iUsertype");
            return (Criteria) this;
        }

        public Criteria andIUsertypeIn(List<Integer> values) {
            addCriterion("i_usertype in", values, "iUsertype");
            return (Criteria) this;
        }

        public Criteria andIUsertypeNotIn(List<Integer> values) {
            addCriterion("i_usertype not in", values, "iUsertype");
            return (Criteria) this;
        }

        public Criteria andIUsertypeBetween(Integer value1, Integer value2) {
            addCriterion("i_usertype between", value1, value2, "iUsertype");
            return (Criteria) this;
        }

        public Criteria andIUsertypeNotBetween(Integer value1, Integer value2) {
            addCriterion("i_usertype not between", value1, value2, "iUsertype");
            return (Criteria) this;
        }

        public Criteria andITextIsNull() {
            addCriterion("i_text is null");
            return (Criteria) this;
        }

        public Criteria andITextIsNotNull() {
            addCriterion("i_text is not null");
            return (Criteria) this;
        }

        public Criteria andITextEqualTo(String value) {
            addCriterion("i_text =", value, "iText");
            return (Criteria) this;
        }

        public Criteria andITextNotEqualTo(String value) {
            addCriterion("i_text <>", value, "iText");
            return (Criteria) this;
        }

        public Criteria andITextGreaterThan(String value) {
            addCriterion("i_text >", value, "iText");
            return (Criteria) this;
        }

        public Criteria andITextGreaterThanOrEqualTo(String value) {
            addCriterion("i_text >=", value, "iText");
            return (Criteria) this;
        }

        public Criteria andITextLessThan(String value) {
            addCriterion("i_text <", value, "iText");
            return (Criteria) this;
        }

        public Criteria andITextLessThanOrEqualTo(String value) {
            addCriterion("i_text <=", value, "iText");
            return (Criteria) this;
        }

        public Criteria andITextLike(String value) {
            addCriterion("i_text like", value, "iText");
            return (Criteria) this;
        }

        public Criteria andITextNotLike(String value) {
            addCriterion("i_text not like", value, "iText");
            return (Criteria) this;
        }

        public Criteria andITextIn(List<String> values) {
            addCriterion("i_text in", values, "iText");
            return (Criteria) this;
        }

        public Criteria andITextNotIn(List<String> values) {
            addCriterion("i_text not in", values, "iText");
            return (Criteria) this;
        }

        public Criteria andITextBetween(String value1, String value2) {
            addCriterion("i_text between", value1, value2, "iText");
            return (Criteria) this;
        }

        public Criteria andITextNotBetween(String value1, String value2) {
            addCriterion("i_text not between", value1, value2, "iText");
            return (Criteria) this;
        }

        public Criteria andITimeIsNull() {
            addCriterion("i_time is null");
            return (Criteria) this;
        }

        public Criteria andITimeIsNotNull() {
            addCriterion("i_time is not null");
            return (Criteria) this;
        }

        public Criteria andITimeEqualTo(String value) {
            addCriterion("i_time =", value, "iTime");
            return (Criteria) this;
        }

        public Criteria andITimeNotEqualTo(String value) {
            addCriterion("i_time <>", value, "iTime");
            return (Criteria) this;
        }

        public Criteria andITimeGreaterThan(String value) {
            addCriterion("i_time >", value, "iTime");
            return (Criteria) this;
        }

        public Criteria andITimeGreaterThanOrEqualTo(String value) {
            addCriterion("i_time >=", value, "iTime");
            return (Criteria) this;
        }

        public Criteria andITimeLessThan(String value) {
            addCriterion("i_time <", value, "iTime");
            return (Criteria) this;
        }

        public Criteria andITimeLessThanOrEqualTo(String value) {
            addCriterion("i_time <=", value, "iTime");
            return (Criteria) this;
        }

        public Criteria andITimeLike(String value) {
            addCriterion("i_time like", value, "iTime");
            return (Criteria) this;
        }

        public Criteria andITimeNotLike(String value) {
            addCriterion("i_time not like", value, "iTime");
            return (Criteria) this;
        }

        public Criteria andITimeIn(List<String> values) {
            addCriterion("i_time in", values, "iTime");
            return (Criteria) this;
        }

        public Criteria andITimeNotIn(List<String> values) {
            addCriterion("i_time not in", values, "iTime");
            return (Criteria) this;
        }

        public Criteria andITimeBetween(String value1, String value2) {
            addCriterion("i_time between", value1, value2, "iTime");
            return (Criteria) this;
        }

        public Criteria andITimeNotBetween(String value1, String value2) {
            addCriterion("i_time not between", value1, value2, "iTime");
            return (Criteria) this;
        }

        public Criteria andIStateIsNull() {
            addCriterion("i_state is null");
            return (Criteria) this;
        }

        public Criteria andIStateIsNotNull() {
            addCriterion("i_state is not null");
            return (Criteria) this;
        }

        public Criteria andIStateEqualTo(Integer value) {
            addCriterion("i_state =", value, "iState");
            return (Criteria) this;
        }

        public Criteria andIStateNotEqualTo(Integer value) {
            addCriterion("i_state <>", value, "iState");
            return (Criteria) this;
        }

        public Criteria andIStateGreaterThan(Integer value) {
            addCriterion("i_state >", value, "iState");
            return (Criteria) this;
        }

        public Criteria andIStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("i_state >=", value, "iState");
            return (Criteria) this;
        }

        public Criteria andIStateLessThan(Integer value) {
            addCriterion("i_state <", value, "iState");
            return (Criteria) this;
        }

        public Criteria andIStateLessThanOrEqualTo(Integer value) {
            addCriterion("i_state <=", value, "iState");
            return (Criteria) this;
        }

        public Criteria andIStateIn(List<Integer> values) {
            addCriterion("i_state in", values, "iState");
            return (Criteria) this;
        }

        public Criteria andIStateNotIn(List<Integer> values) {
            addCriterion("i_state not in", values, "iState");
            return (Criteria) this;
        }

        public Criteria andIStateBetween(Integer value1, Integer value2) {
            addCriterion("i_state between", value1, value2, "iState");
            return (Criteria) this;
        }

        public Criteria andIStateNotBetween(Integer value1, Integer value2) {
            addCriterion("i_state not between", value1, value2, "iState");
            return (Criteria) this;
        }

        public Criteria andIFlagIsNull() {
            addCriterion("i_flag is null");
            return (Criteria) this;
        }

        public Criteria andIFlagIsNotNull() {
            addCriterion("i_flag is not null");
            return (Criteria) this;
        }

        public Criteria andIFlagEqualTo(Integer value) {
            addCriterion("i_flag =", value, "iFlag");
            return (Criteria) this;
        }

        public Criteria andIFlagNotEqualTo(Integer value) {
            addCriterion("i_flag <>", value, "iFlag");
            return (Criteria) this;
        }

        public Criteria andIFlagGreaterThan(Integer value) {
            addCriterion("i_flag >", value, "iFlag");
            return (Criteria) this;
        }

        public Criteria andIFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("i_flag >=", value, "iFlag");
            return (Criteria) this;
        }

        public Criteria andIFlagLessThan(Integer value) {
            addCriterion("i_flag <", value, "iFlag");
            return (Criteria) this;
        }

        public Criteria andIFlagLessThanOrEqualTo(Integer value) {
            addCriterion("i_flag <=", value, "iFlag");
            return (Criteria) this;
        }

        public Criteria andIFlagIn(List<Integer> values) {
            addCriterion("i_flag in", values, "iFlag");
            return (Criteria) this;
        }

        public Criteria andIFlagNotIn(List<Integer> values) {
            addCriterion("i_flag not in", values, "iFlag");
            return (Criteria) this;
        }

        public Criteria andIFlagBetween(Integer value1, Integer value2) {
            addCriterion("i_flag between", value1, value2, "iFlag");
            return (Criteria) this;
        }

        public Criteria andIFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("i_flag not between", value1, value2, "iFlag");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}